package cn.bat.slsystem.control;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.bat.slsystem.service.UserService;
import cn.bat.slsystem.tools.Constants;

@Controller
@RequestMapping(value="/member")
public class MemberController {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping(value="/zhuce.html")
	public String zhuce(HttpSession session){
		List<String> list = (List) session.getAttribute(Constants.lanjie);
		for (String path : list) {
			if(path.equals("member/zhucelist.html")){
				return "zhuce";
			}
		}
		
		return "login";
	}
	
	@RequestMapping(value="/zhucehuiyuan.html")
	public String zhucehuiyuan(){
		
		return "zhucehuiyuan";	
	}
}
